package 
{
  
  import flash.display.Sprite;
  
  public class TaskBg extends Sprite 
  {
    private var _rectangle:Sprite;
    
    public function TaskBg (color) {
        var _rectangle = new Sprite();
         _rectangle.graphics.beginFill(color,1);
         _rectangle.graphics.drawRect(0, 0, 100, 20);
         _rectangle.graphics.endFill();
         addChild(_rectangle);
    }
  }
}